﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PMS.Models.Base;
using PMS.Services;
using PMS.Utils;

namespace PMS.Tests
{
    class Program
    {
        static void Main(string[] args)
        {

            //BaseUser user = new BaseUser();
            //user.UserName = "Sysadmin";
            //user.PassWord = "Sysadmin";
            //user.LastLoginDate = DateTime.Now;
            //user.RegisterDate = DateTime.Now;
            //user.IsDel = 0;
            //user.UpdateBy = 0;
            //user.UpdateDate = DateTimeExtend.InitDateTime;
            //user.DeleteBy = 0;
            //user.DeleteDate = DateTimeExtend.InitDateTime;

            BaseUserService _baseUserService = new BaseUserService();
            //int res = _baseUserService.Add(user);

            Hashtable ht = new Hashtable();
            ht["UserName"] = "%adm%";
            var data = _baseUserService.GetList(ht);

            BaseDict dict=new BaseDict();
            dict.ParentName = "";
            dict.ParentId = 0;
            dict.CreateBy = 1;
            dict.CreateDate=DateTime.Now;
            dict.DeleteBy = 0;
            dict.DeleteDate = DateTimeExtend.InitDateTime;
            dict.Enable = 1;
            dict.IsDel = 0;
            dict.Path = "";
            dict.PathName = "";
            dict.Remark = "测试数据";
            dict.Title = "性别";
            dict.Sym = "XB";
            dict.ModifyBy = 0;
            dict.ModifyDate = DateTimeExtend.InitDateTime;
            dict.Value = "";

            BaseDictService _baseDictService=new BaseDictService();
            _baseDictService.Add(dict);

            Console.WriteLine();
        }
    }
}
